﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
    <title>驰骋工作流</title>
    <script type="text/javascript" src="./Scripts/bootstrap/js/jquery.min.js"></script>
    <script src="./Scripts/QueryString.js" type="text/javascript"></script>
    <!-- 引用通用的js文件. -->
    <script type="text/javascript" src="./Scripts/config.js"></script>
    <script type="text/javascript" src="./Comm/Gener.js"></script>
    <script type="text/javascript" language="javascript" >
        //页面启动函数.
        $(function () {

            //判断是否是抄送
            var en = new Entity("BP.WF.Template.CCList");
            var workID = GetQueryString("WorkID");
            var FK_Node = GetQueryString("FK_Node");
            var CurrTab = GetQueryString("CurrTab");
            if (CurrTab == null || CurrTab == undefined || CurrTab == "")
                CurrTab = "Truck";

            var webUser = new WebUser();
            en.SetPKVal(workID + "_" + FK_Node + "_" + webUser.No);
            var count = en.RetrieveFromDBSources();
            if (count == 1 && en.Sta == "0") {
                en.Sta = 1;
                en.Update();
            }

            var url = "./WorkOpt/OneWork/OneWork.htm?FK_Flow=" + GetQueryString("FK_Flow");
            url += "&CurrTab=" + CurrTab;
            url += "&FK_Node=" + FK_Node;
            url += "&WorkID=" + workID;
            url += "&FID=" + GetQueryString("FID");
            url += "&WorkID=" + GetQueryString("WorkID");
            url += "&CCSta=" + GetQueryString("CCSta");
            window.location.href = url;

        });
    </script>
</head>
<body  >

<form id="cc">

    
<br />
<center> <img src='./Img/loading.gif' alt="" />正在加载，请稍后。。。 </center>
</form>

</body>
</html>
